package io.xiyou.account1;

import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * Created by 西柚.
 */
@Validated
public interface AccountInfoService {

    /**
     * 账户扣款
     *
     * @param accountId
     * @param money
     */
    void subtractAccountBalance(@NotNull Long accountId, @NotNull BigDecimal money);

}
